﻿
@{
    ViewBag.Title = "用餐明细";
    Layout = "~/Views/Shared/_LayoutDateUserCorS.cshtml";
}
 
<script>
    $(document).ready(function () {
        $("#SearchFlag").val(1);
        $("#SearchFlag").attr("disabled", "disabled");
        $("#CorSId").attr("disabled", "disabled");

        $("#loadDataFromServer").click(function () {
            $.get("/BookDinner/YcDetailGet",
                {
                    startDate: $("#StartDate").val(),
                    endDate: $("#EndDate").val(),
                    userId: $("#UserId").val()
                }, function (data, status) {
                    if (status == "success") {
                        $("#tableDetail").html(data);
                    }
                    else {
                        alert("远程服务器连接失败");
                    }
                });
        });
    });
</script>